import std.stdio;

class My
{
    int hh;
}

void main()
{
    int t = 8700;
    My h = new My();
    h.hh = 90;
    int ht = cast(int)t;
    writeln("ht == ", ht);
    
    auto hh = cast(My)h;
    writeln("hh.hh == ", hh.hh);
    
    ulong a = -1;
    writeln("ulong -1  : ", a);
    long b = cast(long)a;
    writeln("long -1  : ", b);
}
